// app/controller/user.js
const Controller = require('egg').Controller;
class UserController extends Controller {
  async login() {
    const { ctx } = this;
    const data = ctx.query;
    const userInfo = await ctx.service.user.login(data);
    ctx.body = userInfo;
  }
}
module.exports = UserController;
